<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>首页</title>
	
			<link rel="stylesheet" type="text/css" href="./tpl/login.css">
	<link rel="stylesheet" type="text/css" href="./login.css">
		<link rel="stylesheet" type="text/css" href="./tpl/css/index.css"/>
	<script type="text/javascript" src='./tpl/jquery-1.7.2.min.js'></script>
	<script type="text/javascript" src='./tpl/on.js'></script>
	</head>
	<body>
		<!-- loginbar -->
<div id="loginwrap">
<!-- logincontent -->
	<div class="logincont">
<!-- loginbarLeft -->
		<div class="loginbarLeft">
			<li><strong>北京</strong></li>
			<ul class="cposition">
			<li class="citys"><a class="city" href="">[切换城市]</a>
			</li>
			<div id="morecity">
				<ul>
					<li class="tit"><a href="">热门城市</a></li>
					<li><a href="">北京</a></li>
					<li><a href="">上海</a></li>
					<li><a href="">广州</a></li>
					<li><a href="">深圳</a></li>
					<li><a href="">天津</a></li>
					<li><a href="">杭州</a></li>
					<li><a href="">西安</a></li>
					<li><a href="">成都</a></li>
					<li><a href="">郑州</a></li>
					<li><a href="">厦门</a></li>
					<li><a href="">青岛</a></li>
					<li><a href="">太原</a></li>
					<li><a href="">重庆</a></li>
					<li><a href="">武汉</a></li>
					<li><a href="">南京</a></li>
					<li><a href="">沈阳</a></li>
					<li><a href="">济南</a></li>
					<li><a href="">哈尔滨</a></li>
					<li class="more"><a href="">更多城市 ></a></li>
				</ul>
			</div>
			
			</ul>
		</div>
<!-- loginbarRight end -->
<!-- loginbarRight -->
		<div class="loginbarRight">
			<ul>
				<li><a href="">管理信息</a>
				<li class="lineSprite">|</li>
				<li><a href="./index.php?fenlei=post">发布信息</a></li>
				<li class="lineSprite">|</li>


			<?php if(!isset($_SESSION['user'])): ?>
				<li><a href="./index.php?fenlei=login">登录</a></li>
				<li class="lineSprite">|</li>
				<li><a href="./index.php?fenlei=reg">注册</a></li>
			<?php else: ?>
				<li><a href="./index.php?fenlei=out">注销</a></li>
				<li class="lineSprite">|</li>
				<li>亲爱的会员 <a class="user" href=""> <?php echo $_SESSION['user'] ?></a> 欢迎回来</li>
				
				
			<?php endif ?> 
			</ul>
		</div>
<!-- loginbarRight end -->
	</div>

</div>
		<div id="main">
			<div class="top"><a href="./index.php">首页</a><a href="./index.php?fenlei=post">发布信息</a><!--<a href="./index.php?fenlei=lists">列表信息</a>--></div>
			<?php foreach($this->data as $key => $value): ?>
				<?php foreach($value as $ke => $va): ?>
					<?php foreach($va as $k => $v): ?>
					
			<div class="info">
				<div class="tit"><a href="./index.php?fenlei=article&bid=<?php echo $key ?>&cid=<?php echo $ke ?>&id=<?php echo $k ?>"><?php echo $v['tit'] ?></a></div>
				<div class="cont">
					<div class="content">
					【<a href="./index.php?fenlei=bigsort&bid=<?php echo $key ?>"><?php echo $v['{formName1}'] ?></a>/<a href="./index.php?fenlei=lists&bid=<?php echo $key ?>&cid=<?php echo $ke ?>"><?php echo $v['{formName2}'] ?></a>】<?php echo $v['cont'] ?><br ?>
					</div>
					<div class="contact">
					联系人：<?php echo $v['linkman'] ?><br />
					电话：<?php echo $v['tel'] ?><br />
					手机：<?php echo $v['moblie'] ?><br />
					QQ：<?php echo $v['QQ'] ?><br />
					地址：<?php echo $v['address'] ?><br />
					</div>
				</div>
				<div class="botton"><?php echo $v['time'] ?><br /></div>
				
			
			
			</div>
					<?php endforeach ?>
				<?php endforeach ?>
			<?php endforeach ?>
			
		</div>
	</body>
</html>
